package com.wj.spingcloud.service;

import com.wj.spingcloud.entity.CommonResult;
import com.wj.spingcloud.entity.PaymentEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentService {

    @GetMapping("/provider/payment/get/{id}")
    CommonResult<PaymentEntity> getPaymentById(@RequestParam("id") Long id);

    @GetMapping("/provider/payment/timeout")
    String getPaymentTimeOut();
}